package com.ylb.rent.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.org.apache.xpath.internal.operations.Or;
import com.ylb.rent.entity.Order;
import com.ylb.rent.entity.dto.RoomOrderDto;
import com.ylb.rent.entity.vo.OrderVo;
import com.ylb.rent.exception.BusinessException;

import java.util.List;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/7/5 10:00
 */
public interface IOrderService extends IService<Order> {

    public List<OrderVo> all();
    public List<OrderVo> list(Order order);
    public int update(Order order);
    public Order insertOrder(RoomOrderDto order) throws BusinessException;
    public Order selectOrderByOrderNo(String orderNo);
    public boolean payOk(String orderNo);
    public boolean payCancel(String orderNo);
    public void sendCancelMessage(String orderNo);
}
